export class SectCultivationSpotManager {
  /** 默认有效次数 */
  private defaultValidCount = 720;
  /** 剩余有效次数 */
  private remainingValidCount = 0;

  /** 设置有效次数 */
  public setValidCount(validCount: number) {
    this.remainingValidCount = Math.max(0, validCount);
  }

  /** 获取有效次数 */
  public getValidCount() {
    return this.remainingValidCount;
  }

  /** 增加 defaultValidCount 次有效次数 */
  public addValidCount() {
    this.remainingValidCount += this.defaultValidCount;
  }

  public hasValidCount() {
    return this.remainingValidCount > 0;
  }
}
